#ifndef CAMPAIGNMAINWINDOW_H
#define CAMPAIGNMAINWINDOW_H


#include <Campaign.h>



#include <QMainWindow>
#include <QPointer>

namespace Ui {
    class CampaignMainWindow;
}

class CampaignMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit CampaignMainWindow(QWidget *parent = 0);
    ~CampaignMainWindow();


    void setCampaign(Campaign* c);
    Campaign* campaign() const;

    void showXml(bool show);
    void createItem(int type, QString name);

    void renameCampaign();
    void updateCampaign();


protected slots:

    void onChanged();


protected:

    bool eventFilter(QObject *, QEvent *);


private:
    Ui::CampaignMainWindow *ui;

    QPointer<Campaign> m_campaign;




private slots:
    void on_itemTree_sigItemSelected(Item* item);
};

#endif // CAMPAIGNMAINWINDOW_H
